﻿/* About ATC-Sim was created by Phu Truong, First Draft.*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;

namespace Air_Trafic_Control.UI
{
    partial class ptAboutATC : Form
    {
        //Constructor
        public ptAboutATC()
        {
            InitializeComponent();
            this.Text = String.Format("About {0}", AssemblyTitle);
            this.labelProductName.Text = String.Format("Air Trafic Control");
            this.labelVersion.Text = String.Format("Version 1.0");
            this.labelCopyright.Text = String.Format("Copyright by Clinton Bush, Quang Nguyen, and Phu Truong");
            this.labelCompanyName.Text = String.Format("SSE 657");
            this.textBoxDescription.Text = String.Format("An Air Traffic Controller simulation would make a great game with varying levels of difficulty. This being considered, the team endeavored to build such an application while demonstrating the skills necessary for completion of this course. Mr. Quang Nguyen initially had the idea and presented a convincing concept to the team. It was this vision that provided Advanced Avionics Simulations, Inc. a base on which to build the project that this document describes.");
        }

        #region Properties

        public string AssemblyTitle
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
                if (attributes.Length > 0)
                {
                    AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
                    if (titleAttribute.Title != "")
                    {
                        return titleAttribute.Title;
                    }
                }
                return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
            }
        }

        public string AssemblyVersion
        {
            get
            {
                return Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }

        public string AssemblyDescription
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
                if (attributes.Length == 0)
                {
                    return "";
                }
                return ((AssemblyDescriptionAttribute)attributes[0]).Description;
            }
        }

        public string AssemblyProduct
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
                if (attributes.Length == 0)
                {
                    return "";
                }
                return ((AssemblyProductAttribute)attributes[0]).Product;
            }
        }

        public string AssemblyCopyright
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
                if (attributes.Length == 0)
                {
                    return "";
                }
                return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
            }
        }

        public string AssemblyCompany
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
                if (attributes.Length == 0)
                {
                    return "";
                }
                return ((AssemblyCompanyAttribute)attributes[0]).Company;
            }
        }
        #endregion

        #region Private Methods

        private void okButton_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

        private void ptAboutATC_Load(object sender, EventArgs e)
        {

        }
 
        #endregion
    }
}
